﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="AnyOffice.general.meeting.room.index" %>

<%@ Reference Page="~/general/index.aspx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>会议室设置</title>
		
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script>
function delete_room(room_id)
{
 msg='确认要删除该会议室，及相关的会议信息么？';
 if(window.confirm(msg))
 {
	URL="delete.aspx?room_id=" + room_id;
	window.location=URL;
 }
}
		</script>
	</HEAD>
	<body class="bodycolor" topMargin="5">
		<form id="Form1" method="post" runat="server">
         <div class="main_div">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="tab_ti"><span class="big3"> 
							新建会议室</span>
					</td>
				</tr>
			</table>
			<div align="center">
				<input type="button" value="新建会议室" class="bnt_Add" onClick="location='new.aspx';" title="新建会议室，并添加基本信息">
			</div>
			<br>
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="tab_ti"><span class="big3">
							管理会议室</span>
					</td>
					<td valign="bottom" class="small1">
						<asp:Panel id="pnlNav" runat="server" Visible="False">共<SPAN class="big4">&nbsp;
								<asp:Literal id="litRoomCount" runat="server"></asp:Literal></SPAN>&nbsp;个会议室</asp:Panel>
					</td>
				</tr>
			</table>
			<asp:Repeater id="rptRoom" runat="server" EnableViewState="False">
				<HeaderTemplate>
					<table width="95%" cellSpacing="0" cellPadding="0" border="0" class="tab_pub" align="center">
						<tr>							
							<td nowrap class="TableHeader" align="center">名称</td>							
							<td nowrap class="TableHeader" align="center">可容纳人数</td>
							<td class="TableHeader" align="center">设备情况</td>
							<td nowrap class="TableHeader" align="center">所在地点</td>
							<td class="TableHeader" align="center">会议室描述</td>
							<td class="TableHeader" nowrap align="center">操作</td>
						</tr>
				</HeaderTemplate>
				<ItemTemplate>
					<tr class="TableLine1">						
						<td nowrap align="center"><%#Eval("Name")%></td>						
						<td nowrap align="center"><%#Eval("Capacity")%></A></td>
						<td><%#Eval("Device")%></A></td>
						<td><%#Eval("Place")%></td>
						<td><%#Eval("Description")%></td>
						<td nowrap align="center">
							<!--<a href="query.aspx?room_id=<%#Eval("RoomId")%>">预定情况</a>&nbsp;&nbsp;-->
							<a href="edit.aspx?room_id=<%#Eval("RoomId")%>">
								修改</a>&nbsp;&nbsp;<a href="javascript:delete_room('<%#Eval("RoomId")%>');">删除</a>
						</td>
					</tr>
				</ItemTemplate>
				<AlternatingItemTemplate>
					<tr class="TableLine2">						
						<td nowrap align="center"><%#Eval("Name")%></td>						
						<td nowrap align="center"><%#Eval("Capacity")%></A></td>
						<td><%#Eval("Device")%></A></td>
						<td><%#Eval("Place")%></td>
						<td><%#Eval("Description")%></td>
						<td nowrap align="center">
							<!--<a href="query.aspx?room_id=<%#Eval("RoomId")%>">预定情况</a>&nbsp;&nbsp;-->
							<a href="edit.aspx?room_id=<%#Eval("RoomId")%>">
								修改</a>&nbsp;&nbsp;<a href="javascript:delete_room('<%#Eval("RoomId")%>');">删除</a>
						</td>
					</tr>
				</AlternatingItemTemplate>
				<FooterTemplate>
					</table>
				</FooterTemplate>
			</asp:Repeater>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
            </div>
		</form>
	</body>
</HTML>
